Class BaseCommand

Summary

Fully Qualified Name: CodeIgniter\CLI\BaseCommand

Description

Class BaseCommand

Methods

Name Description Defined By
__construct() BaseCommand constructor. BaseCommand
__get() Makes it simple to access our protected properties. BaseCommand
__isset() Makes it simple to check our protected properties. BaseCommand
getPad() Get pad for $key => $value array output BaseCommand
run() Actually execute a command. BaseCommand
showHelp() show Help include (usage,arguments,description,options) BaseCommand

Method Details

__construct()

BaseCommand constructor.

Parameter Name Type Description
$logger \Psr\Log\LoggerInterface
$commands \CodeIgniter\CLI\CommandRunner

Returns:

__get()

Makes it simple to access our protected properties.

Parameter Name Type Description
$key string

Returns: mixed

__isset()

Makes it simple to check our protected properties.

Parameter Name Type Description
$key string

Returns: bool

getPad()

Get pad for $key => $value array output

Parameter Name Type Description
$array array
$pad int

Returns: int

run()

Actually execute a command.

This has to be over-ridden in any concrete implementation.

Parameter Name Type Description
$params array

Returns:

showHelp()

show Help include (usage,arguments,description,options)

Returns:

Top